﻿package {
	import flash.media.Sound;
	class XmasSound extends Sound {
		private var mp3:Sound;
		public function XmasSound():void {
			var n:int=Math.floor(Math.random()*6);
			switch (n) {
				case 0 :
					mp3= new xmas1MP3();
					break;
				case 1 :
					mp3= new xmas2MP3();
					break;
				case 2 :
					mp3= new xmas3MP3();
					break;
				case 3 :
					mp3= new xmas4MP3();
					break;
				case 4 :
					mp3= new xmas5MP3();
					break;
				case 5 :
					mp3= new xmas6MP3();
			}
		}
		public function get MP3():Sound{
			return mp3;
		}
	}
}